import React from 'react'
import { BrowserRouter as Router, Route } from 'react-router-dom'

//  引入登录和首页组件
import Login from './pages/Login'
import Layout from './pages/Layout'

// 引入样式
import './App.css'

class App extends React.Component {
    render () {
        return (
            <Router>
                <div className='app'>
                    <Route path='/login' component={Login}></Route>
                    <Route path='/home' component={Layout}></Route>
                </div>
            </Router>
        )
    }
}

export default App